From: Alex Kiernan Date: Sat, 31 Dec 2022 11:11:14 +0000 (+0000) Subject: lib/repo-checkout: Add ALLPERMS for musl X-Git-Tag: archive/raspbian/2023.7-3+rpi1~1^2~9^2~3^2~11^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=6aef666a2911c15b31efeed08d89fe9997d89e04;p=ostree.git lib/repo-checkout: Add ALLPERMS for musl ALLPERMS is glibc specific, add a definition for musl. Signed-off-by: Alex Kiernan --- diff --git a/src/libostree/ostree-core-private.h b/src/libostree/ostree-core-private.h index 2bd2f984..48b2b8ab 100644 --- a/src/libostree/ostree-core-private.h +++ b/src/libostree/ostree-core-private.h @@ -34,6 +34,11 @@ G_BEGIN_DECLS #define DEFAULT_DIRECTORY_MODE 0775 #define DEFAULT_REGFILE_MODE 0660 +/* This exists in glibc's sys/stat.h, but not on musl */ +#ifndef ALLPERMS +#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) +#endif + /* This file contains private implementation data format definitions * read by multiple implementation .c files. */